]> dgit.raspbian.org Git - ostree.git/commitdiff
tests/inst: Remove unused Kill9Stats and RebootStats structs
authorXiaofeng Wang <henrywangxf@me.com>
Tue, 31 Mar 2026 07:12:05 +0000 (15:12 +0800)
committerXiaofeng Wang <henrywangxf@me.com>
Tue, 31 Mar 2026 07:12:05 +0000 (15:12 +0800)
These structs were never constructed, flagged by cargo clippy with
-Ddead_code.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
tests/inst/src/destructive.rs

index 5a89bd0d4e24e07df3673e1846eadaf1755c6a45..2668cf2e0c0b1cbc37372b5829d17a057d3ba45b 100644 (file)
@@ -186,19 +186,6 @@ struct TransactionalTestInfo {
     cycle_time: time::Duration,
 }
 
-#[derive(Serialize, Deserialize, Debug, Default)]
-struct Kill9Stats {
-    interrupted: u32,
-    staged: u32,
-    success: u32,
-}
-
-#[derive(Serialize, Deserialize, Debug, Default)]
-struct RebootStats {
-    interrupted: u32,
-    success: u32,
-}
-
 fn upgrade_and_finalize() -> Result<()> {
     bash!(
         "rpm-ostree upgrade